<?php

class CategoryPeer extends BaseCategoryPeer
{
	public static function getTopCategories()
	{
		$criteria = new Criteria();

		$criteria->addDescendingOrderByColumn(self::CLICKS);
		$criteria->setLimit(10);

		return self::doSelect($criteria);
	}

	public static function getAllCategories()
	{
		$criteria = new Criteria();

		$criteria->addAscendingOrderByColumn(self::NAME);

		return self::doSelect($criteria);
	}


}
